Remove overhead in gdk_window_get_user_data
authorMatthias Clasen <mclasen@redhat.com>
Sun, 27 Sep 2015 18:06:27 +0000 (14:06 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 28 Sep 2015 10:29:50 +0000 (06:29 -0400)
This function is called very frequently during in GTK+'s drawing
paths, and thus should not carry unexpected costs.

gdk/gdkwindow.c

index 2f7ee2dcba3046cfda4d6c75c7ecfb380adb1ec1..75d1034b7a0259d4182abbab38bd90625fac95c5 100644 (file)
@@ -2174,8 +2174,6 @@ void
 gdk_window_get_user_data (GdkWindow *window,
                          gpointer  *data)
 {
-  g_return_if_fail (GDK_IS_WINDOW (window));
-
   *data = window->user_data;
 }